package com.yksj.healthtalk.entity;

import java.util.ArrayList;
import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 兴趣墙图片上传实体
 * 上完完毕后传入图聊资料修改界面
 * @author crj
 *
 */
public class UploadImageEntity implements Parcelable{

	private String cusid;
	private String picname;
	private String picdesc;
	private String picId;
	private List<TagEntity> infos;
	public String getCusid() {
		return cusid;
	}
	public void setCusid(String cusid) {
		this.cusid = cusid;
	}
	public String getPicdesc() {
		return picdesc;
	}
	public void setPicdesc(String picdesc) {
		this.picdesc = picdesc;
	}
	public List<TagEntity> getInfos() {
		return infos;
	}
	public void setInfos(List<TagEntity> infos) {
		this.infos = infos;
	}
	public String getPicname() {
		return picname;
	}
	public void setPicname(String picname) {
		this.picname = picname;
	}
	@Override
	public int describeContents() {
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(cusid);
		dest.writeString(picdesc);
		dest.writeString(picname);
		dest.writeString(picId);
		dest.writeList(infos);
	}
	
	public static final Creator<UploadImageEntity> CREATOR = new Creator<UploadImageEntity>() {

		@Override
		public UploadImageEntity createFromParcel(Parcel source) {
			UploadImageEntity entity = new UploadImageEntity();
			entity.setCusid(source.readString());
			entity.setPicdesc(source.readString());
			entity.setPicname(source.readString());
			entity.setPicId(source.readString());
			 List<TagEntity> infos = new ArrayList<TagEntity>();
			source.readList(infos, getClass().getClassLoader());
			entity.setInfos(infos);
			return entity;
		}

		@Override
		public UploadImageEntity[] newArray(int size) {
			return null;
		}
	};
	

	public String getPicId() {
		return picId;
	}
	public void setPicId(String picId) {
		this.picId = picId;
	}}
